<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>P211 9.3.1 字符限定</title>
</head>

<body>
    <script>
        var str = 'webWEBWebwEb';
        var reg1 = /w.*b/gi;
        var reg2 = /w.*?b/gi;
        console.log(reg1.exec(str));
        console.log(reg2.exec(str));
    </script>
    <a href="../首页/page09.html">
        <h2>返回上一页面</h2>
    </a>
</body>

</html>